﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ProductDetailsForm.aspx.cs" Inherits="RBOSS.WebUI.ProductDetailsForm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <% if (Product != null)
           { %>
        <div class="productImage" style="float: left;">
            <div style="float: left;">
                <img width="300px" src='<%=Product.Image %>' />
                <% if (Session["role"] == null || Session["role"].ToString() == "Customer"){%>
                <table cellspacing="20px">

                    <tr><td><asp:DropDownList runat="server" Height="33px" ID="ddlQty" Font-Size="22px" /></td>
                    <td><asp:LinkButton runat="server" CssClass="bigGreyButton" ID="butAddToCart">Add to cart</asp:LinkButton></td>
                        <td><asp:LinkButton runat="server" CssClass="bigGreyButton" ID="butContinueShoppings" PostBackUrl="~/Default.aspx" Width="200px">Continue Shopping</asp:LinkButton></td>
                    </tr></table>
                <% }%>
            </div>
            <div style="float: right;">
                <div class="productDetails">
                    <table cellspacing="20px">
                        <tr>
                            <td>Name</td>
                            <td><%= Product.ProductName %></td>
                        </tr>
                        <tr>
                            <td>Price</td>
                            <td>$<%= Product.Price %></td>
                        </tr>
                        <tr>
                            <td>Quantity</td>
                            <td><%= Product.Qunatity %></td>
                        </tr>
                        <tr>
                            <td valign="top">Description</td>
                            <td><%= Product.Description %></td>
                        </tr>


                    </table>
                </div>
            </div>

        </div>


        <% } %>
    </div>
</asp:Content>
